package wo.esys.po;

import java.util.Date;
import java.util.List;

/**
 * 用户
 * @author cailei
 * @date Nov 4, 2018
 */
public class User {

	/**
	 * ID
	 */
	private String id;

	/**
	 * 登录名.
	 */
	private String loginName;

	/**
	 * 密码.
	 */
	private String password = "123456";

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 修改密码时间
	 */
	private Date passwordTime;

	public User() {
		super();
	}
	
	public User(String id, String loginName, String password, Date createTime) {
		super();
		this.id = id;
		this.loginName = loginName;
		this.password = password;
		this.createTime = createTime;
	}

	/**
	 * 角色
	 */
	private List<Role> roles;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getPasswordTime() {
		return passwordTime;
	}

	public void setPasswordTime(Date passwordTime) {
		this.passwordTime = passwordTime;
	}

	public List<Role> getRoles() {
		return roles;
	}

	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
}
